<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        ul li {
            float: left;
            position: relative;
            width: 150px;
            height: 50px;
            list-style: none;
            /* border: 1px solid red; */
            margin: 100px 10px;
            transform-style: preserve-3d;
            transition: all 1s;

        }

        .one,
        .two {
            width: 100%;
            height: 100%;
            position: absolute;
            text-align: center;
            font-size: 16px;
            line-height: 50px;
        }

        .one {
            background-color: pink;
            z-index: 1;
            transform: translateZ(25px);
        }

        .two {
            background-color: purple;
            transform: translateY(25px) rotateX(-90deg);
        }

        li:hover {
            transform: rotateX(90deg);
        }
    </style>
</head>

<body>

    <ul>
        <li>
            <div class="one">黑马课程</div>
            <div class="two">前端开发</div>
        </li>
        <li>
            <div class="one">黑马课程</div>
            <div class="two">前端开发</div>
        </li>
        <li>
            <div class="one">黑马课程</div>
            <div class="two">前端开发</div>
        </li>
        <li>
            <div class="one">黑马课程</div>
            <div class="two">前端开发</div>
        </li>
        <li>
            <div class="one">黑马课程</div>
            <div class="two">前端开发</div>
        </li>
    </ul>
    <h1>hi好啊</h1>
</body>

</html>